FMeinicke's Wiki

Home

❯

Linux

❯

Make `/sys/power/image_size` persistent

Make `/sys/power/image_size` persistent

May 26, 20251 min read

  • swap
  • hibernation
  • sys/power/image_size
  • tmpfiles

swap hibernation image_size tmpfiles

Source(s)

  • https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#About_swap_partition/file_size
  • https://docs.kernel.org/admin-guide/pm/sleep-states.html?highlight=image_size#basic-sysfs-interfaces-for-system-suspend-and-hibernation
  • https://docs.kernel.org/power/swsusp.html
  • https://www.reddit.com/r/archlinux/comments/ftak2a/comment/fm5y7v4/
  • https://www.reddit.com/r/Gentoo/comments/p7dckk/comment/h9laczr/
  • non-persistent
echo 0 | sudo tee /sys/power/image_size
  • persistent
sudo vim /etc/tmpfiles.d/hibernation_image_size.conf
 
#    Path                   Mode UID  GID  Age Argument
w    /sys/power/image_size  -    -    -    -   0

Graph View

Created with Quartz v4.5.0 © 2025

  • GitHub